import request from '@/utils/request'
import URL from '@/api/baseUrl'
export default class Product {
  /**
   * 查询列表
   */
  static list (data = {}) {
    return request.get(`${URL.comBasic}/bas-product/list`, data)
  }

  /**
   * 查询详情
   */
  static getInfo (id) {
    return request.get(`${URL.comBasic}/bas-product/getInfo/${id}`)
  }
  /**
   * 删除
   */
  static remove (ids) {
    return request.delete(`${URL.comBasic}/bas-product/remove`,ids)
  }
  /**
   * 新增
   */
  static add (data = {}) {
    return request.post(`${URL.comBasic}/bas-product/add`, data)
  }
  /**
   * 修改
   */
  static edit (data = {}) {
    return request.put(`${URL.comBasic}/bas-product/edit`, data)
  }
  /**
   * 查询列表
   */
  static detailsList (data = {}) {
    return request.get(`${URL.comBasic}/bas-sub-product/list`, data)
  }

  
  
    /**
   * 查询列表
   */
  static queryList (data = {}) {
    return request.get(`${URL.comBasic}/bas-sub-product/list`, data)
  }
  /**
   * 查询详情
   */
  static detailsGetInfo (id) {
    return request.get(`${URL.comBasic}/bas-sub-product/getInfo/${id}`)
  }
  /**
   * 删除
   */
  static detailsRemove (ids) {
    return request.delete(`${URL.comBasic}/bas-sub-product/remove`,ids)
  }
  /**
   * 新增
   */
  static detailsAdd (data = {}) {
    return request.post(`${URL.comBasic}/bas-sub-product/add`, data)
  }
  /**
   * 修改
   */
  static detailsEdit (data = {}) {
    return request.put(`${URL.comBasic}/bas-sub-product/edit`, data)
  }
}
